home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / tex-k-archive.past / tex-k-archive.gz / tex-k-archive / 000629_eddy@gen.cam.ac.uk_Thu Jun 9 17:18:46 1994.msg < prev    next >
Internet Message Format  |  1994-10-11  |  3KB

  1. Received: from ppsw1.cam.ac.uk (gray.csi.cam.ac.uk) by cs.umb.edu with SMTP id AA28520
  2.   (5.65c/IDA-1.4.4 for <tex-k@cs.umb.edu>); Thu, 9 Jun 1994 17:18:46 -0400
  3. Received: from eddy.gen.cam.ac.uk by ppsw1.cam.ac.uk 
  4.           with SMTP-CAM (PP-6.0) as ppsw.cam.ac.uk 
  5.           id <01434-0@ppsw1.cam.ac.uk>; Thu, 9 Jun 1994 22:18:39 +0100
  6. Received: by eddy.gen.cam.ac.uk (4.1/MDTG-V1.1@gen.cam.ac.uk) id AA18703;
  7.           Thu, 9 Jun 94 22:19:06 BST
  8. Return-Path: <eddy@gen.cam.ac.uk>
  9. From: eddy <eddy@gen.cam.ac.uk>
  10. Date: Thu, 9 Jun 94 22:19:06 BST
  11. Message-Id: <9406092119.AA18703@eddy.gen.cam.ac.uk>
  12. To: kb@edu.umb.cs
  13. Cc: tex-k@edu.umb.cs
  14. In-Reply-To: <9406082209.AA02007@AME.Arizona.edu> (bauer@spock.ame.arizona.edu)
  15. Subject: Re: xdvik: missing its `File' button
  16.  
  17. [ Previously sent to bauer@spock.ame.arizona.edu, jp107@amtp.cam.ac.uk, kb@cs
  18.   and copied to tex-k@cs, pete@lovelace.thi.informatik.uni-frankfurt.de
  19.   but it bounced; rmail replied to edu.umb.cs by mistake for cs.umb.edu ]^;
  20.  
  21. bauer> In case you don't know, the selfile widget is ...
  22. jp> ... look through the Makefile.in for the string "SELFILE" ...
  23. kb> Maybe you want to compile with -DSELFILE? See xdvik/INSTALL
  24. Ignorance of what this means was the entire problem -- I'd seen the documents
  25. refer to this funny word `selfile' but hadn't twigged to the fact that it meant
  26. `add a button enabling the user to select a file'.  Dim of me.  Sadly, it turns
  27. out that on using it I trip over the wchar_t problems that the documentation
  28. warns about.  Having solved the problem without selfile, I think I'll stick with
  29. the patch I built yesterday.  Less tidy but less hassle (and anyway I get a buzz
  30. out of using my own software).
  31.  
  32. jp> Our users are a weird lot.
  33. I don't see this as weird.  The functionality is essential if I'm to start up
  34. xdvi from the menu on my background (`root') window, which is (after all) one of
  35. the things that the WIMP idiom is all about.  That means being able to specify
  36. the file-name on which to act _after_ initiation.  I used to do this by having a
  37. really dim little xdvi file (the TeX equivalent of `hello world') on which the
  38. menu initiated it, then changing file once started.  Indeed, the ideal form for
  39. xdvi would, if given no file on which to act (Usage message at present), make
  40. enquiries (via the SelFile stuff) as to the file on which to act.
  41.  
  42. It's an ill wind blows no good; the script I put together to get round the
  43. problem is fairly straightforward (now that I've worked out how to do it) and
  44. reasonably versatile.  I lack xprompt, so I've done it with xmessage instead.
  45. My menu entry now invokes
  46.     GetFileDo 'xdvi which file ?' xdvi
  47. which is hardly difficult, even if xmessage's display is mildly sub-optimal.
  48. This is not as good a solution as getting xdvi to do the job but it does have
  49. the advantage that I'm not going to have to change it every time xdvi moves on
  50. to a new version :-}
  51.  
  52. Rough spec for GetFileDo:
  53. Usage: GetFileDo 'message text' command -opt-args-expecting-file
  54. interacts with the user to select a file, then executes
  55.     command -opt-args-expecting-file file
  56. for the selected file. 
  57.  
  58. If you want it, just ask ;-)
  59. Thanks variously for the almost useful information,
  60.  
  61.     Eddy.